<template>
  <el-date-picker
    v-model="value"
    type="datetime"
    format="YYYY-MM-DD HH:mm:ss"
    value-format="YYYY-MM-DD HH:mm:ss"
    clearable
  />
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import { ICellEditorParams } from 'ag-grid-community';


const props = defineProps<{
  params: ICellEditorParams;
}>();

const value = ref(props.params.value);

function getValue() {
  return value.value;
}

defineExpose({
  getValue
});
</script>
